home *** CD-ROM | disk | FTP | other *** search
/ Dynamic HTML Construction Kit / Dynamic HTML Construction Kit.iso / earthlink / nscomm / java40.jar / sun / awt / windows / WFileDialogPeer.class (.txt) < prev    next >
Encoding:
Java Class File  |  1997-11-03  |  2.2 KB  |  116 lines

  1. package sun.awt.windows;
  2.  
  3. import java.awt.Color;
  4. import java.awt.Event;
  5. import java.awt.FileDialog;
  6. import java.awt.Font;
  7. import java.awt.Insets;
  8. import java.awt.peer.FileDialogPeer;
  9. import java.io.FilenameFilter;
  10.  
  11. class WFileDialogPeer extends WWindowPeer implements FileDialogPeer {
  12.    private WComponentPeer parent;
  13.  
  14.    public void setDirectory(String var1) {
  15.    }
  16.  
  17.    public void setFile(String var1) {
  18.    }
  19.  
  20.    public void setTitle(String var1) {
  21.    }
  22.  
  23.    public void setFilenameFilter(FilenameFilter var1) {
  24.       System.err.println("setFilenameFilter not implemented\n");
  25.    }
  26.  
  27.    WFileDialogPeer(FileDialog var1) {
  28.       super(var1);
  29.    }
  30.  
  31.    void create(WComponentPeer var1) {
  32.       this.parent = var1;
  33.    }
  34.  
  35.    void initialize() {
  36.       FileDialog var10000 = (FileDialog)super.target;
  37.    }
  38.  
  39.    public native void show();
  40.  
  41.    void handleSelected(String var1) {
  42.       int var2 = var1.lastIndexOf(92);
  43.       String var3;
  44.       if (var2 == -1) {
  45.          var3 = ".\\";
  46.          ((FileDialog)super.target).setFile(var1);
  47.       } else {
  48.          var3 = var1.substring(0, var2 + 1);
  49.          ((FileDialog)super.target).setFile(var1.substring(var2 + 1));
  50.       }
  51.  
  52.       ((FileDialog)super.target).setDirectory(var3);
  53.       ((FileDialog)super.target).setVisible(false);
  54.    }
  55.  
  56.    void handleCancel() {
  57.       ((FileDialog)super.target).setFile((String)null);
  58.       ((FileDialog)super.target).setVisible(false);
  59.    }
  60.  
  61.    void calculateInsets(Insets var1) {
  62.    }
  63.  
  64.    public void toFront() {
  65.    }
  66.  
  67.    public void toBack() {
  68.    }
  69.  
  70.    public void setResizable(boolean var1) {
  71.    }
  72.  
  73.    public void hide() {
  74.    }
  75.  
  76.    public void enable() {
  77.    }
  78.  
  79.    public void disable() {
  80.    }
  81.  
  82.    public void reshape(int var1, int var2, int var3, int var4) {
  83.    }
  84.  
  85.    public boolean handleEvent(Event var1) {
  86.       return false;
  87.    }
  88.  
  89.    public void dispose() {
  90.    }
  91.  
  92.    public void setForeground(Color var1) {
  93.    }
  94.  
  95.    public void setBackground(Color var1) {
  96.    }
  97.  
  98.    public void setFont(Font var1) {
  99.    }
  100.  
  101.    public void requestFocus() {
  102.    }
  103.  
  104.    public void nextFocus() {
  105.    }
  106.  
  107.    public void setCursor(int var1) {
  108.    }
  109.  
  110.    void start() {
  111.    }
  112.  
  113.    void invalidate(int var1, int var2, int var3, int var4) {
  114.    }
  115. }
  116.